<script setup>
import NoticeItem from "./noticeItem.vue";

const props = defineProps({
  list: {
    type: Array ,
    default: () => []
  }
});
</script>

<template>
  <div v-if="props.list.length">
    <NoticeItem
      v-for="(item, index) in props.list"
      :key="index"
      :noticeItem="item"
    />
  </div>
  <el-empty v-else description="暂无消息" />
</template>
